package peer.rdp;

import java.net.InetAddress;

public class DS2Ident {
	public InetAddress dstIp;
	public int dstPort;
	int hashCode=0;
	public DS2Ident(InetAddress dstIp,int dstPort){
		this.dstIp=dstIp;
		this.dstPort=dstPort;
		hashCode = (dstIp.toString()+Integer.toString(dstPort)).hashCode();
	}
	public boolean equals(Object ob){
		DS2Ident di=(DS2Ident)ob;
		if(di.dstIp.equals(dstIp)&di.dstPort==dstPort){
			return true;
		}else{
			return false;
		}
			
	}
	
	public int hashCode(){
		return hashCode;
	}

}
